/********************************************************************************
 *      Copyright:  (C) 2025 LingYun IoT System Studio
 *                  All rights reserved.
 *
 *       Filename:  tempdb.h
 *    Description:  This file 
 *
 *        Version:  1.0.0(30/04/25)
 *         Author:  chenhongyu0822@163.com
 *      ChangeLog:  1, Release initial version on "30/04/25 22:09:22"
 *                 
 ********************************************************************************/

#ifndef  _TEMPDB_H
#define  _TEMPDB_H

extern int tempdb_init(sqlite3 **db, char *file, char *table_name);
 
extern int insert_data(sqlite3 *db, char *table_name, Sample_Data_t Data);

extern int is_tempdb_empty(sqlite3 *db, char *table_name);

extern int fetch_data(sqlite3 *db, char *table_name, Sample_Data_t *data);

extern int delete_data(sqlite3 *db, const char *table_name, Sample_Data_t data);

#endif
